View Code to export Business contacts to comma del. text file Posted by ~Dean Brefanaman on 9.Jan.04 at 06:19 PM using a Web browser Category: Notes Client Release: All Releases Platform: Windows XP
mValue1 := @If((NameDisplayPref = "1" | NameDisplayPref = 1 | @IsUnavailable(NameDisplayPref)) & (LastName !="" | FirstName != "");
@If(FirstName = "";@Trim(@Subset(LastName;1));@Trim(@Subset(FirstName;1)) + " " +
@Trim(@Subset(LastName;1)));
NameDisplayPref="2" | NameDisplayPref = 2 & (LastName!="" | FirstName !="");
@Trim(@Subset(LastName;1)) ;
CompanyName);
mValue2 := @If((NameDisplayPref = "1" | NameDisplayPref = 1 | @IsUnavailable(NameDisplayPref)) & (LastName !="" | FirstName != "");
@If(FirstName = "";@Trim(@Subset(LastName;1));@Trim(@Subset(FirstName;1)) + " " +
@Trim(@Subset(LastName;1)));
NameDisplayPref="2" | NameDisplayPref = 2 & (LastName!="" | FirstName !="");
@If(FirstName!="";@Trim(@Subset(FirstName;1));"");
CompanyName);
addr := @If(MailAddress = "" & InternetAddress != ""; @Trim(InternetAddress); @Trim(MailAddress));
mValue3 := @If(@Contains(@LowerCase(addr); "cn="); @Name([Abbreviate]; addr); addr);
mValue4 :=@If(CompanyName != "";CompanyName;"");
mValue5 := OfficeStreetAddress;
mValue6 := OfficeCity;
mValue7 := OfficeState;
mValue8 :=OfficeZip;
mValue9 := @Text(OfficePhoneNumber);
mValue10 :=@Text(OfficeFAXPhoneNumber);
mValue11 := @Text(CellPhoneNumber);
mValue12 :=@Text(PhoneNumber );
"\"" + @Trim(@ReplaceSubstring(@Implode(mValue1; " | ") ; "," : "\"":@Char(0):@Char(13); " " )) + "\""+
"," +
"\"" + @Trim(@ReplaceSubstring(@Implode(mValue2; " | ") ; "," : "\"":@Char(0):@Char(13); " " )) + "\"" +
"," +
"\"" + @Trim(@ReplaceSubstring(@Implode(mValue3; " | ") ; "," : "\"":@Char(0):@Char(13); " " )) + "\"" +
"," +
"\"" + @Trim(@ReplaceSubstring(@Implode(mValue4; " | ") ; "," : "\"":@Char(0):@Char(13); " " )) + "\""+
"," +
"\"" + @Trim(@ReplaceSubstring(@Implode(mValue5; " | ") ; "," : "\"":@Char(0):@Char(13); " " )) + "\""+
"," +
"\"" + @Trim(@ReplaceSubstring(@Implode(mValue6; " | ") ; "," : "\"":@Char(0):@Char(13); " " )) + "\""+
"," +
"\"" + @Trim(@ReplaceSubstring(@Implode(mValue7; " | ") ; "," : "\"":@Char(0):@Char(13); " " )) + "\""+
"," +
"\"" + @Trim(@ReplaceSubstring(@Implode(mValue8; " | ") ; "," : "\"":@Char(0):@Char(13); " " )) + "\""+
"," +
"\"" + @Trim(@ReplaceSubstring(@Implode(mValue9; " | ") ; "," : "\"":@Char(0):@Char(13); " " )) + "\""+
"," +
"\"" + @Trim(@ReplaceSubstring(@Implode(mValue10; " | ") ; "," : "\"":@Char(0):@Char(13); " " )) + "\""+
"," +
"\"" + @Trim(@ReplaceSubstring(@Implode(mValue11; " | ") ; "," : "\"":@Char(0):@Char(13); " " )) + "\""+
"," +
"\"" + @Trim(@ReplaceSubstring(@Implode(mValue12; " | ") ; "," : "\"":@Char(0):@Char(13); " " )) + "\""
Personal Address Book & MS Office I... (~Dean Brefanama... 2.Jan.04)
. . RE: Personal Address Book & MS Offi... (~Laura Chutumiv... 7.Jan.04)
. . . . Re: Personal Address Book & MS Offi... (~Dean Brefanama... 9.Jan.04)
. . . . . . View Code to export Business contac... (~Dean Brefanama... 9.Jan.04)
. . . . . . . . Office XP & Office 2000 seem OK wit... (~Dean Brefanama... 9.Jan.04)
Document Options
Search this forum
RSS Feeds